﻿
namespace DTcms.Model
{
    public class SaveModel
    {
        /// <summary>
        /// 返回状态, 默认为0
        /// </summary>
        public int status { get; set; } = 0;

        /// <summary>
        /// 返回消息
        /// </summary>
        public string msg { get; set; } = "操作成功";

        /// <summary>
        /// id
        /// </summary>
        public int id { get; set; } = 0;

        /// <summary>
        /// 返回链接
        /// </summary>
        public string url { get; set; } = "";
    }

    /// <summary>
    /// 通用返回结果带数据
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class SaveModel<T> : SaveModel
    {
        /// <summary>
        /// 返回数据
        /// </summary>
        public T data { get; set; }
    }
}
